package top.yonyong.java8.A接口的默认方法;

/**
 * @author yonyong
 **/
public class DefaultTestImpl implements DefalutTest{
    @Override
    public int sub(int a, int b) {
        return a-b;
    }

    @Override
    public void defaultMethod2() {
        System.out.println("default方法可以被重写");
    }
}
